package com.zzty.training.service.impl;

import com.zzty.training.dao.TeamExamDao;
import com.zzty.training.entity.TeamExam;
import com.zzty.training.service.TeamExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TeamExamServiceImpl  implements TeamExamService {
    @Autowired
    TeamExamDao teamExamDao;
    @Override
    public List<TeamExam> getAllTeamExam() {
        List<TeamExam> teamExams=teamExamDao.getAllTeamExam();
        return teamExams;
    }
    @Override
    public Integer addTeamExam(TeamExam teamExam) {
        Integer res=teamExamDao.addTeamExam(teamExam);
        return res;
    }
}
